<div id="content" class="login">
    <h1>Gemba360 GP Clinic</h1>
    <div id="main-form" class="login-content">
        <?if(!empty($_POST['username']) && !empty($_POST['password']) && $error == 2){?>
          <p class="login-message">Invalid Username or Password. Please try again.</p>
        <? } ?>
        <form name="loginForm" id="loginForm" method="POST" action="<?=$_SERVER['REQUEST_URI']?>">
            <ul class="rows">
                <li class="leftcol username">&nbsp;</li>
                <li class="rightcol">
                    <input type="text" name="username" id="username" value="<?=$user_row['username']?>" class="<?=(!empty($error))?'error':'';?>">
                    <?if($error == 1 && empty($_POST['username'])){?>
                        <span class="login-error">Username required</span>
                    <? } ?>
                </li>
            </ul>
            <ul class="rows">
                <li class="leftcol password">&nbsp;</li>
                <li class="rightcol">
                    <input type="text" name="password" id="password" value="<?=$user_row['username']?>" class="<?=(!empty($error))?'error':'';?>">
                    <?if($error == 1 && empty($_POST['password'])){?>
                        <span class="login-error">Password required</span>
                    <? } ?>
                </li>
            </ul>
            <p class="forgot-password">
                <a href="#">Forgot Password?</a>
            </p>
            <p class="buttons_elements">
                <input type="submit" class="form-button btn" id="submitBtn" value="Login">
            </p>
            <br clear="all" />
        </form>
    </div>
</div>
<script>
    $(document).ready(function() {
        $("#username").watermark("Username");
        $("#password").watermark("Password");
    });
</script>